package thread;
class MyThread extends Thread{
    @Override
    public void run() {
        System.out.println("theard");
    }
}
/**
 * 创建线程方法1：继承Thread
 */
public class Demo1 {
    public static void main(String[] args) {
        Thread t1 = new MyThread();
        t1.start();
    }

}
